package org.platform.hrv.lib.common;

import lombok.*;

/**
 * HRVMetrics
 *
 * @program: ecg-zoo
 * @description:
 * @author: Mr.Nanke
 **/
@ToString
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class HRVMetrics {
    // {
    //         *             "lfHfRatio": 0.3469071234759784,
    //         *             "nni50": 64,
    //         *             "affect": "休眠",
    //         *             "stdHr": 13.225797439282859,
    //         *             "hr": 83,
    //         *             "stressDoc": "比较轻松",
    //         *             "mtime": 1748501735711,
    //         *             "decode": "体力、精力减退，不想做某些事情",
    //         *             "minHr": 51.23825789923143,
    //         *             "meanNni": 720.6208791208791,
    //         *             "rmssd": 155.60947719295632,
    //         *             "uid": "1927981538583257088|861265061204977",
    //         *             "meanHr": 85.08287021967588,
    //         *             "tiredDef": "当前您会感到不堪重负，觉得十分疲劳。这种状态会使您做事效率低下。建议您可以在休息好的基础上，重新制定目标与计划，以提升效率。这种状态如果长时间累积，可能会影响到您的身体健康，要记得及时调整哦！",
    //         *             "sdsd": 155.60946306955427,
    //         *             "pnni20": 61.87845303867403,
    //         *             "stressDef": "您现在压力较小，不会有太多紧张、焦虑情绪,说明当下没有能伤害或威胁您的现实情况。日常生活中可适当走出舒适区，增加一些挑战，实现最佳压力与身心健康的相互平衡状态。生活方面宜动不宜静，享受热闹的氛围更容易让你保持平静，也可以约上朋友打打球。",
    //         *             "medianNni": 721.5,
    //         *             "tiredDoc": "疲乏程度较高",
    //         *             "stress": 8,
    //         *             "maxHr": 147.7832512315271,
    //         *             "sdnn": 106.39322561461063,
    //         *             "nni20": 112,
    //         *             "tired": 92,
    //         *             "cvsd": 0.21593806355262976,
    //         *             "vlf": 539.6449707553053,
    //         *             "emoDef": "当下您的心情非常好，会感到十分愉悦。可能是想到或者发生了令您满意的事情。这种愉悦的状态有利于人身心健康的发展。建议您可以进行一些户外活动或者有效社交。",
    //         *             "emotion": 76,
    //         *             "lfnu": 25.755831076214914,
    //         *             "pnni50": 35.35911602209945,
    //         *             "hfnu": 74.2441689237851,
    //         *             "lf": 1173.972161040607,
    //         *             "cvnni": 0.1476410532878328,
    //         *             "emoDoc": "比较愉悦",
    //         *             "rangeNni": 765,
    //         *             "hf": 3384.110851566006,
    //         *             "totalPower": 5097.727983361919
    //         *         }

    private String uid;
    // 时域指标
    private Integer nni50;
    private Double pnni50;

    private Double stdHr;
    private Double maxHr;
    private Double minHr;
    private Double meanHr;

    private Double meanNni;
    private Double rmssd;
    private Double sdsd;
    private Double medianNni;
    private Double sdnn;

    private Double nni20;
    private Double pnni20;

    private Double cvsd;
    private Double cvnni;
    private Double rangeNni;
    private Double tinn;
    private Double triangularIndex;

    private Double hrvDiff;
    private Double hrvLn;

    // 频域指标
    private Double lfHfRatio;
    private Double lfnu;
    private Double hfnu;
    private Double lf;
    private Double vlf;
    private Double hf;
    private Double totalPower;

}